﻿#include "cuserinfomgr.h"

CUserInfoMgr::CUserInfoMgr(QObject *parent) : QObject(parent)
{

}

CUserInfoMgr &CUserInfoMgr::ins()
{
    static CUserInfoMgr mgr;
    return mgr;
}

void CUserInfoMgr::setInfo(bool state, CUserInfo &info, QString token) {
    m_isLogin = state;
    m_info = info;
    m_token = token;
}

const CUserInfo &CUserInfoMgr::info() {
    return m_info;
}

QString CUserInfoMgr::token()
{
    return m_token;
}

